package com.liang.springcloud.service;

import com.liang.springcloud.entities.CommonResult;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: 史德亮
 * @time: 2020/11/10 15:57
 */
@Component
public class FallbackService  implements  PaymentService{
    @Override
    public CommonResult getPaymentById(Long id) {
        return new CommonResult();
    }

    @Override
    public String payment_ok(Integer id) {
        return "--------------------ok=-----出错";
    }

    @Override
    public String payment_timeOut(Integer id) {
        return "---------------timeout";
    }
}
